<?php
$this->headTitle('Quản lý nhóm thiết bị IT','append');
?>
<!-- Start Table -->
<div class="grid grid_8">
    <div class="box-header">
        Danh sách nhóm thiết bị
        <a class="add" href="<?php echo $this->url(array ( 'controller' => 'category' ,'action' => 'add' )); ?>">
            Thêm mới
        </a>
    </div>
    <div class="box table">
        <table cellspacing="0">
        	<thead>
        		<tr>
        			<td class="tc">ID</td>
        			<td>Tên nhóm</td>
        			<td>Mã nhóm</td>
        			<td>Ghi chú</td>
        			<td>Tuỳ chọn</td>
        		</tr>
        	</thead>
        	<tbody>
                <?php foreach ($this->category_list as $category){ ?>
                <tr id="row<?php echo $category->categoryId; ?>">
        			<td class="tc"><?php echo $category->categoryId; ?></td>
        			<td>
                        <a href="<?php echo $this->url(array ( 'controller' => 'category' ,'action' => 'edit' , 'id' => $category->categoryId )); ?>">
                        <?php echo $category->categoryName; ?>
                        </a>
                    </td>
        			<td>
                        <a href="<?php echo $this->url(array ( 'controller' => 'category' ,'action' => 'edit' , 'id' => $category->categoryId )); ?>">
                        <?php echo $category->categoryCode; ?>
                        </a>
                    </td>
        			<td><em><?php echo $category->note; ?></em></td>
        			<td class="tc">
            			<a href="<?php echo $this->url(array ( 'controller' => 'category' ,'action' => 'edit' , 'id' => $category->categoryId )); ?>">
                            <img src="image/icons/small/icon_edit.png" alt="edit catalogy" title="edit catalogy" border="0"/>
                        </a> 
                        <a href="<?php echo $this->url(array ( 'controller' => 'category' ,'action' => 'delete' , 'id' => $category->categoryId ));?>">
                            <img src="image/icons/small/icon_delete.png" alt="delete catalogy" title="delete catalogy" border="0"/>
                        </a>
                    </td>
        		</tr>
                <?php } ?>
            </tbody>
        </table>
    </div>
</div>
<div class="grid grid_4">
    <div class="box-header">Hướng dẫn</div>
    <div class="box">
    </div>
</div>
<br class="cl" />
